LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE    := liblive555
LOCAL_SRC_FILES := $(LOCAL_PATH)/../3rd_party/android/libs/$(TARGET_ARCH_ABI)/liblive555.so
NDK_APP_DST_DIR=../build/android/lib/$(TARGET_ARCH_ABI)
NDK_APP_OBJ_DIR=../build/android/obj/$(TARGET_ARCH_ABI)
include $(PREBUILT_SHARED_LIBRARY) 
#LOCAL_SRC_FILES := $(LOCAL_PATH)/../3rd_party/android/libs/$(TARGET_ARCH_ABI)/liblive555.a
#include $(PREBUILT_STATIC_LIBRARY) 

include $(CLEAR_VARS)
APP_ABI := armeabi-v7a-hard

LOCAL_MODULE := librtspclient
NDK_APP_DST_DIR=../build/android/lib/$(TARGET_ARCH_ABI)
NDK_APP_OBJ_DIR=../build/android/obj/$(TARGET_ARCH_ABI)

LOCAL_ARM_MODE := arm
LOCAL_CPPFLAGS += -DNULL=0 -DSOCKLEN_T=socklen_t -DNO_SSTREAM -DBSD=1 -DNO_SSTREAM -fexceptions -D__ANDROID__ -DXLOCALE_NOT_USED -DCPP
LOCAL_CPPFLAGS += -frtti

LOCAL_MODULE_TAGS := optional

LOCAL_C_INCLUDES := \
../3rd_party/android/inc/BasicUsageEnvironment \
../3rd_party/android/inc/liveMedia \
../3rd_party/android/inc/groupsock \
../3rd_party/android/inc/UsageEnvironment \
../inc/UsageEnvironment \
../include \
../src 

LOCAL_SRC_FILES :=\
../src/rtsp_client_api.cpp \
../src/mp_common.cpp 

LOCAL_SHARED_LIBRARIES := liblive555
#LOCAL_LDLIBS := liblive555

LOCAL_LDFLAGS  += -fPIC

#include $(BUILD_STATIC_LIBRARY)
include $(BUILD_SHARED_LIBRARY)
